package xyz.thoughtset.viewer.common.crud.core.annotation;


import xyz.thoughtset.viewer.common.annotation.core.AMR;
import xyz.thoughtset.viewer.common.crud.core.service.BaseService;

import java.lang.annotation.*;

@AMR
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
public @interface ApiCRUDPower {
    boolean one() default true;
    boolean list() default false;
    boolean page() default true;
    boolean searchOnly() default false;

    boolean insert() default true;
    boolean save() default true;
    boolean update() default true;
    boolean replace() default false;
    boolean delete() default true;
    boolean removeList() default false;
    String topic() default "";
    Class queryServiceClass() default BaseService.class;
    Class cmdServiceClass() default BaseService.class;

}
